//
//  NSData+Category.h
//  Project_Demo
//
//  Created by caoxiaozhu on 2018/7/4.
//  Copyright © 2018年 caoxiaozhu. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSData (Category)

//base64
- (NSString *)base64Encoding;
+ (NSString *)base64Encoding:(NSData*)data;

/*!
 *  将二进制转换成字符串
 *
 *  @return 字符串
 */
- (NSString *)toString;

+ (NSString *)toString:(NSData *)data;

@end
